<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet" type="text/css"/>
</head>
<body>
<!--直接写名称${键}，先在上下文对象中找数据，找不到会在请求范围中找数据

-->
<div th:text="${hello}"></div>
<!--${session.键},在session范围中找数据

-->
<div th:text="${session.username}"></div>
<!--/video_prj/test/a-->
<div th:text="@{/test/a}"></div>
<button class="btn btn-danger">ceshi</button>
<div th:text="${d}"></div>
<div th:text="${#dates.format(d,'yyyy-MM-dd HH:mm:ss')}"></div>

<div th:text="|hi,${hello}|"></div>


<p th:each="user:${users}"  th:text="${user.user_name}"></p>
<table class="table table-striped table-bordered">
    <thead>
        <tr>
            <th>用户名</th>
            <th>密码</th>
        </tr>
    </thead>
    <tbody>
        <tr th:each="u:${users}">
            <td th:text="${u.user_name}"></td>
            <td th:text="${u.user_pwd}"></td>
        </tr>
    </tbody>

</table>

<button class="btn btn-danger" th:if="${hello=='zhangsan1'}">测试</button>
<script type="text/javascript" th:src="@{/asserts/js/jquery-1.12.3.min.js}"></script>
<script type="text/javascript" th:src="@{/asserts/js/bootstrap.min.js}"></script>
</body>
</html>